package cc.fs.study.rxjava.util;

import rx.subjects.BehaviorSubject;

/**
 * rx生命周期监听
 * Created by fostion on 5/27/16.
 */
public class RxLifecycle {
    enum Event {
        DESTROY
    }

    final BehaviorSubject<Event> eventBehavior = BehaviorSubject.create();

    final void onDestory() {
        eventBehavior.onNext(Event.DESTROY);
    }


}

